<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>

<%@ page import="jdk.nashorn.internal.ir.RuntimeNode" %><%--
  Created by IntelliJ IDEA.
  User: root
  Date: 2022-05-04
  Time: 20:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>

<html lang="en">


<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>index个人首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            font-size: 20px;
            color: #f4f1de;
        }
        body {
            height: 50vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image:linear-gradient(to right, #a18cd1, #fbc2eb);
            flex-direction: column;

        }
        .shell{
            display: flex;
            justify-content: center;
        }
        .button,.portrait{
            background-color: #50536e;
            width: 170px;
            height: 65px;
            text-align: center;
            line-height: 65px;
            transition: .3s;
            cursor: pointer;
        }
        .portrait::before{
            content: '';
            display: block;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            transform: translate(30px,-30px);
            background-image: url('./IQ.png');
            background-size: cover;
            border: 10px solid #fff;
        }
        .information{
            width: 220px;
            background-color: #e07a5f;
            transform: translate(-20px,-200px);
            border-radius: 10px;
            padding: 20px 0;
            line-height: 0;
            height: 0;
            transition: .3s;
            opacity: 0;

        }
        .button:hover{
            background-color: #d15a39;
        }
        .button li:hover{
            background-color: #ffb29d;
        }
        .button ul li{
            height: 0;
            transition: .2s;
            opacity: 0;
            transform: translateY(-65px);
            background-color: #e07a5f;
        }
        .button:hover li{
            height: 65px;
            opacity: 1;
            transform: translateY(0);
        }
        .portrait:hover .information{
            opacity: 1;
            line-height: 65px;
            transform: translate(-20px,-10px);
            height: auto;
        }
    </style>

    <style type="text/css" >


        #one-column-emphasis
        {
            font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
            font-size: 12px;
            margin: 45px;
            width: 860px;
            text-align: left;
            border-collapse: collapse;
        }
        #one-column-emphasis th
        {
            font-size: 14px;
            font-weight: normal;
            padding: 12px 15px;
            color: #039;
        }
        #one-column-emphasis td
        {
            padding: 10px 15px;
            color: #669;
            border-top: 1px solid #e8edff;
        }
        .oce-first
        {
            background: #d0dafd;
            border-right: 10px solid transparent;
            border-left: 10px solid transparent;
        }
        #one-column-emphasis tr:hover td
        {
            color: #339;
            background: #eff2ff;
        }

    </style>
    <script>
        function dianji() {
            alert("点击事件");
        }
    </script>
</head>

<body>
<%

    response.getHeader("");
    String name=  request.getParameter("name");
    request.setAttribute("name",name);
    request.setAttribute("bookName","地球编年史");

%>
<ul class="shell">
    <li class="button">
        <span>消息</span>
        <ul>
            <li>回复我的</li>
            <li>收到的赞</li>
            <li>我的消息</li>
        </ul>
    </li>
    <li class="button">
        <span><a href="./book/selectBook.jsp">借阅</a></span>
    </li>
    <li class="portrait">
        <ul class="information">

            <c:if test="${empty sessionScope.name}" >
                <li><a href="index.jsp">登录或者注册</a> </li>
            </c:if>
            <c:if test="${not empty sessionScope.name}">
                <li>欢迎你</li>
                <li>${sessionScope.name}</li>
            </c:if>
        </ul>
    </li>
    <li class="button">
        <span>收藏</span>
        <ul>
            <li>默认收藏夹</li>
            <li>UI设计</li>
            <li>懂得都懂</li>
        </ul>
    </li>
    <li class="button">
        <span>投稿</span>
        <ul>
            <li>专栏投稿</li>
            <li>音频投稿</li>
            <li>贴纸投稿</li>
            <li>视频投稿</li>
            <li>投稿管理</li>
        </ul>
    </li>
</ul>

<table id="one-column-emphasis" summary="2007 Major IT Companies' Profit">
    <colgroup>
        <col class="oce-first" />
    </colgroup>
    <thead>
    <tr>
        <th scope="col">书籍图片</th>
        <th scope="col">书籍id</th>
        <th scope="col">书籍名称</th>
        <th scope="col">作者</th>
        <th scope="col">类型</th>
        <th scope="col">页数</th>
        <th scope="col">CSID</th>
        <th scope="col">修改信息 </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>
            <img src="IQ.png" height="50">
        </td>
        <td>102</td>
        <td>顾诚</td>
        <td>顾诚</td>
        <td>小说</td>
        <td>300</td>
        <td>30ID</td>
        <td scope="col"><a href="">修改信息</a> </td>

    </tr>
    <tr>
        <td>
            <img src=./pictureBook/${bookName}.jpg height="50">
    </td>
        <td>103</td>
        <td>南明史</td>
        <td>顾诚</td>
        <td>历史书</td>
        <td>380</td>
        <td>89YD90</td>
        <td scope="col"><a href="">修改信息</a> </td>


    </tr>


    <tr>
        <td>
            <img src="./pictureBook/南明史.jpg" height="50">
        </td>
        <td>103</td>
        <td>南明史</td>
        <td>顾诚</td>
        <td>历史书</td>
        <td>380</td>
        <td>89YD90</td>
        <td scope="col"><a href="">修改信息</a> </td>

    </tr>


    <tr>
        <td>
            <img src="./pictureBook/鱼没有脚.jpg" height="50">
        </td>
        <td>105</td>
        <td>鱼没有脚</td>
        <td>鱼先生</td>
        <td>小说</td>
        <td>500</td>
        <td>8OPD78</td>
        <td scope="col"><a href="">修改信息</a> </td>

    </tr>




    <!--                <tr>-->
    <!--                    <td>Apple</td>-->
    <!--                    <td>25.4</td>-->
    <!--                    <td>30.2</td>-->
    <!--                    <td>33.3</td>-->
    <!--                    <td>36.7</td>-->
    <!--                </tr>-->
    <!--                <tr>-->
    <!--                    <td>IBM</td>-->
    <!--                    <td>20.4</td>-->
    <!--                    <td>15.6</td>-->
    <!--                    <td>22.3</td>-->
    <!--                    <td>29.3</td>-->
    <!--                </tr>-->



    </tbody>


    </table>
</body>



</html>
